

package com.maoshi.shop.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maoshi.shop.bean.dto.ShopAuditingInfoDto;
import com.maoshi.shop.bean.param.AuditingInfoParam;
import com.maoshi.shop.dao.ShopAuditingMapper;
import com.maoshi.shop.bean.model.ShopAuditing;
import com.maoshi.shop.service.ShopAuditingService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 商家审核信息
 *
 * @author Dwl
 * @date 2019-09-19 14:02:57
 */
@Service
@AllArgsConstructor
public class ShopAuditingServiceImpl extends ServiceImpl<ShopAuditingMapper, ShopAuditing> implements ShopAuditingService {

    private final ShopAuditingMapper shopAuditingMapper;


    @Override
   public  ShopAuditing getShopAuditingByUserId(String userId){
        return shopAuditingMapper.getShopAuditingByUserId(userId);
    }

    @Override
    public IPage<ShopAuditingInfoDto> auditingInfoList(Page<ShopAuditingInfoDto> page, AuditingInfoParam auditingInfoParam) {
        IPage<ShopAuditingInfoDto> resultList = shopAuditingMapper.auditingInfoList(page,auditingInfoParam);
        return resultList;
    }

}
